package com.test.pattern.builder.demo1;

/**
 * @ClassName: Client
 * @description:
 * @author: Mr du
 * @create: 2024-02-17 18:34
 */
public class Client {

    public static void main(String[] args) {
        //创建指挥者对象
        Director director = new Director(new MobikeBuilder());
        //让指挥者指挥装配自行车
        Bike bike = director.construct();
        System.out.println(bike.getFrame());
        System.out.println(bike.getSeat());
    }
}
